﻿/**
 * @brief  模型树点击事件处理器
 * @author BaGuijun (baguijun@163.com)
 * @date   2024-09-07
 */
#ifndef _CFDPostOperModelTreeMouseEvent_H_
#define _CFDPostOperModelTreeMouseEvent_H_

#include "FITK_Kernel/FITKCore/FITKOperatorRepo.h"
#include "OperatorsInterface/ParaWidgetInterfaceOperator.h"

#include "CFDPostOperatorsGUIAPI.h"

namespace GUIOper {
    /**
     * @brief  模型树点击事件处理器
     * @author BaGuijun (baguijun@163.com)
     * @date   2024-09-07
     */
    class CFDPostOperatorsGUIAPI CFDPostOperModelTreeMouseEvent : public EventOper::ParaWidgetInterfaceOperator {
        Q_OBJECT;
      public:
        /**
         * @brief    构造函数
         * @author   BaGuijun (baguijun@163.com)
         * @date     2024-09-07
         */
        CFDPostOperModelTreeMouseEvent();
        /**
         * @brief    析构函数
         * @author   BaGuijun (baguijun@163.com)
         * @date     2024-09-07
         */
        ~CFDPostOperModelTreeMouseEvent();
        /**
         * @brief    更新树
         * @author   BaGuijun (baguijun@163.com)
         * @date     2024-09-07
         */
        void updateTree();

        void CurrentObjectChange(int objID);
    };

    // Register2FITKOPeratorRepo(ModelTreeEvent, CFDPostOperModelTreeMouseEvent);
    Register2FITKOPeratorRepo(CFDPostModelTreeEvent, CFDPostOperModelTreeMouseEvent);

}  // namespace GUIOper

#endif
